# -=- encoding: UTF-8

from django.contrib import admin

from adl.core.models import *

class EntryAdmin(admin.ModelAdmin):
    date_hierarchy = 'created'
    list_display = ('created', 'created_by', 'modified', 'modified_by', 'text')
    list_filter = ('created', 'modified')

    ordering = ('-created',)
admin.site.register(Entry, EntryAdmin)

class AttachAdmin(admin.ModelAdmin):
    date_hierarchy = 'created'
    list_display = ('created', 'created_by', 'modified', 'modified_by', 'file')
    list_filter = ('created', 'modified')

    ordering = ('-created',)
admin.site.register(Attachment, AttachAdmin)